home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / OEMNADP9.IN_ / oemnadp9.inf
INI File  |  1996-07-12  |  25KB  |  652 lines

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     EISA
  5.         "Jazz-Internal Bus"
  6. [Options]
  7.     P1990
  8. [FileConstants]
  9. UtilityInf      = "UTILITY.INF"
  10. subroutineinf   = "SUBROUTN.INF"
  11. SoftwareType    = "driver"
  12. Exit_Code       = 0
  13. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  14. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  15. P1990_1BYTE     = 6311746
  16. Manufacturer    = "Microsoft"
  17. ProductMajorVersion     = "4"
  18. ProductMinorVersion     = "0"
  19. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  20. ProductSoftwareName     = "Proteon"
  21. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\pronet16.sys"
  22. NetRuleSoftwareType     = "proteonSys ndisDriver proteonDriver"
  23. NetRuleSoftwareUse      = $(SoftwareType)
  24. NetRuleSoftwareBindForm = """ProteonSys"" yes no container"
  25. NetRuleSoftwareClass    = {"proteonDriver basic"}
  26. ProductHardwareName     = "Proteon"
  27. NetRuleHardwareType     = "p1990 p1990Adapter"
  28. NetRuleHardwareBindForm = " yes yes container"
  29. NetRuleHardwareClass    = {"p1990Adapter basic"}
  30. ProductOpSupport     = 134 
  31. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  32. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  33. [GeneralConstants]
  34. from      = ""
  35. to        = ""
  36. ExitCodeOk     = 0
  37. ExitCodeCancel = 1
  38. ExitCodeFatal  = 2
  39. KeyNull         = ""
  40. MAXIMUM_ALLOWED   = 33554432
  41. RegistryErrorIndex = NO_ERROR
  42. KeyProduct      = ""
  43. KeyParameters   = ""
  44. TRUE            = 1
  45. FALSE           = 0
  46. NoTitle            = 0
  47. ExitState   = "Active"
  48. OldVersionExisted = $(FALSE)
  49. DriverPath      = $(!STF_NTPATH)\drivers
  50. [date]
  51.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  52. [Identify]
  53.     read-syms Identification
  54.     set Status     = STATUS_SUCCESSFUL
  55.     set Identifier = $(OptionType)
  56.     set Media      = #("Source Media Descriptions", 1, 1)
  57.     Return $(Status) $(Identifier) $(Media)
  58. [ReturnOptions]
  59.     set Status        = STATUS_FAILED
  60.     set OptionList     = {}
  61.     set OptionTextList = {}
  62.     set LanguageList = ^(LanguagesSupported, 1)
  63.     Ifcontains(i) $($0) in $(LanguageList)
  64.         ifstr(i) $($1) == ""
  65.            goto returnoptions
  66.         endif
  67.         set PlatformList = ^(PlatformsSupported, 1)
  68.         Ifcontains(i) $($1) in $(PlatformList)
  69.            goto returnoptions
  70.         else
  71.            set Status = STATUS_NOTSUPPORTED
  72.            goto finish_ReturnOptions
  73.         endif
  74.     else
  75.         set Status = STATUS_NOLANGUAGE
  76.         goto finish_ReturnOptions
  77.     endif
  78. returnoptions = +
  79.     set OptionList     = ^(Options, 1)
  80.     set OptionTextList = ^(OptionsText$($0), 1)
  81.     set Status         = STATUS_SUCCESSFUL
  82. finish_ReturnOptions = +
  83.     Return $(Status) $(OptionList) $(OptionTextList)
  84. [InstallOption]
  85.     set Option   = $($1)
  86.     set SrcDir   = $($2)
  87.     set AddCopy  = $($3)
  88.     set DoCopy   = $($4)
  89.     set DoConfig = $($5)
  90.     set LanguageList = ^(LanguagesSupported, 1)
  91.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  92.         Return STATUS_NOLANGUAGE
  93.     endif
  94.     Debug-Output "OEMNADP9.INF: STF_CWDIR is: "$(!STF_CWDIR)
  95.     Debug-Output "OEMNADP9.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  96.     set-subst LF = "\n"
  97.     read-syms GeneralConstants
  98.     read-syms FileConstants
  99.     Shell $(UtilityInf), GetBindingInfo, "PROTEON"
  100.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  101.         Debug-Output "ShellCode error: cannot get an error string."
  102.         goto ShellCodeError
  103.     endif
  104.     set NetRuleSoftwareBindable = $($R1)
  105.     read-syms DialogConstants$(!STF_LANGUAGE)
  106.     ifstr(i) $(!NTN_Origination) == "NCPA"
  107.         set Continue = $(OK)
  108.     endif
  109.     read-syms FileConstants$(!STF_LANGUAGE)
  110.     detect date
  111.     set-title  $(FunctionTitle)
  112.     set to   = Begin
  113.     set from = Begin
  114.     set CommonStatus = STATUS_SUCCESSFUL
  115.     EndWait
  116. Begin = +
  117.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  118.         set StartLabel = removeadapter
  119.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  120.         set StartLabel = UpgradeSoftware
  121.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  122.         set StartLabel = bindingadapter
  123.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  124.         set CommonStatus = STATUS_REBOOT
  125.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  126.             Debug-Output "Cannot configure the proteon 1990 driver software."
  127.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  128.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  129.                 Debug-Output "ShellCode error: cannot get an error string."
  130.                 goto ShellCodeError
  131.             endif
  132.             set Error = $($R0)
  133.             set from = end
  134.             set to = end
  135.             goto nonfatalinfo
  136.         endif
  137.         set StartLabel = configureadapter
  138.     else
  139.         set StartLabel = installadapter
  140.         set OEM_ABANDON_OPTIONS = {}
  141.         set OEM_ABANDON_SOFTWARE = FALSE
  142.         set OEM_ABANDON_ON = TRUE
  143.     endif
  144.     set from = $(fatal)
  145.     set to = $(fatal)
  146.     goto $(StartLabel)
  147. installadapter = +
  148.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  149.     Ifstr $(KeyProduct) != $(KeyNull)
  150.         CloseRegKey $(KeyProduct)
  151.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  152.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  153.                $(ProductVersion)
  154.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  155.                Debug-Output "ShellCode error: cannot get an error string."
  156.                goto ShellCodeError
  157.            endif
  158.            goto end
  159.         else
  160.            Shell $(UtilityInf), CardExistedDlg
  161.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  162.                Debug-Output "ShellCode error: cannot get an error string."
  163.                goto ShellCodeError
  164.            endif
  165.            ifstr(i) $($R1) != "OK"
  166.                set CommonStatus = STATUS_USERCANCEL
  167.                goto end
  168.            endif
  169.            set OldVersionExisted = $(TRUE)
  170.         endif
  171.     endif
  172.     goto nextstep
  173. configureadapter = +
  174.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) NetCardKey
  175.     ifstr(i) $(NetCardKey) == ""
  176.         set CommonStatus = STATUS_USERCANCEL
  177.         goto successful
  178.     endif
  179.     GetRegValue $(NetCardKey) "ServiceName" ServiceInfo
  180.     set ServiceName = *($(ServiceInfo),4)
  181.     CloseRegKey $(NetCardKey)
  182.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ServiceName)"\Parameters" $(MAXIMUM_ALLOWED) ParamKey
  183.     ifstr(i) $(ParamKey) != ""
  184.         GetRegValue $(ParamKey),"NetworkAddress", NetworkAddressInfo
  185.         GetRegValue $(ParamKey),"CardSpeed", CardSpeedInfo
  186.     ifint *($(CardSpeedInfo),4) == 4
  187.         set RadioIn = {1}
  188.     else
  189.         set RadioIn = {2}
  190.     endif
  191.         set NetworkAddress = *($(NetworkAddressInfo), 4)
  192.         read-syms FileDependentDlg$(!STF_LANGUAGE)
  193.         ui start "NetworkAddress"
  194.         ifstr(i) $(DLGEVENT) == "CONTINUE"
  195.             ifcontains 1 in $(RadioOut)
  196.                 set CardSpeed = 4
  197.             else
  198.                 set CardSpeed = 16
  199.             endif
  200.             SetRegValue $(ParamKey) {CardSpeed,$(NoTitle),$(!REG_VT_DWORD),$(CardSpeed)}
  201.             set NetworkAddress = *($(EditTextOut),1)
  202.             SetRegValue $(ParamKey) {NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)}
  203.             ui pop 1
  204.         else
  205.             set CommonStatus = STATUS_USERCANCEL
  206.             ui pop 1
  207.         endif
  208.         CloseRegKey $(ParamKey)
  209.     endif
  210.     goto successful
  211. nextstep = +
  212.     StartWait
  213. installproduct = +
  214.     Shell $(UtilityInf), EISAFindBus, $(P1990_1BYTE)
  215.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  216.         goto ShellCodeError
  217.     endif
  218.     ifstr $($R0) != "NO_ERROR"
  219.         set Error = $($R0)
  220.         goto fatal
  221.     endif
  222.     ifstr(i) $($R1) == {}
  223.         set Error = $(CANNOT_FIND_ANY_CARD)
  224.         set CommonStatus = STATUS_USERCANCEL
  225.         set from = "end"
  226.         goto nonfatal
  227.     endif
  228.     set AdapterList = $($R1)
  229.     ifint $(OldVersionExisted) == $(FALSE)
  230.         ifstr(i) $(!NTN_InstallMode) == "install"
  231.            Ifstr(i) $(DoCopy) == "YES"
  232.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  233.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  234.                   Goto ShellCodeError
  235.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  236.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  237.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  238.                       goto ShellCodeError
  239.                   endif
  240.                   set Error = $($R0)
  241.                   Goto fatal
  242.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  243.                   Goto successful
  244.               Endif
  245.               Set SrcDir = $($R1)
  246.            Endif
  247.            install "Install-Option"
  248.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  249.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  250.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  251.                   goto ShellCodeError
  252.               endif
  253.               set Error = $($R0)
  254.               goto fatal
  255.            endif
  256.         endif
  257.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  258.             $(ProductSoftwareName), +
  259.             $(ProductSoftwareName), +
  260.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  261.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  262.             $(NetEventDLL)
  263.         Set OEM_ABANDON_SOFTWARE = TRUE
  264.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  265.             goto ShellCodeError
  266.         endif
  267.         set RegistryErrorIndex = $($R0)
  268.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  269.             EndWait
  270.             CloseRegKey $($R1)
  271.             CloseRegKey $($R2)
  272.             CloseRegKey $($R3)
  273.             CloseRegKey $($R4)
  274.             CloseRegKey $($R5)
  275.             goto fatalregistry
  276.         endif
  277.         Set SoftProductKey      = $($R1)
  278.         Set SoftNetRuleKey      = $($R2)
  279.         Set SoftServiceKey      = $($R3)
  280.         Set SoftParameterKey    = $($R4)
  281.         Set SoftLinkageKey      = $($R5)
  282.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  283.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  284.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  285.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  286.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  287.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  288.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  289.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  290.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  291.             goto ShellCodeError
  292.         endif
  293.         set RegistryErrorIndex = $($R0)
  294.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  295.             EndWait
  296.             CloseRegKey $(SoftProductKey)
  297.             CloseRegKey $(SoftNetRuleKey)
  298.             CloseRegKey $(SoftServiceKey)
  299.             CloseRegKey $(SoftParameterKey)
  300.             CloseRegKey $(SoftLinkageKey)
  301.             goto fatalregistry
  302.         endif
  303.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  304.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  305.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  306.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  307.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  308.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  309.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  310.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  311.             goto ShellCodeError
  312.         endif
  313.         set RegistryErrorIndex = $($R0)
  314.         CloseRegKey $(SoftProductKey)
  315.         CloseRegKey $(SoftNetRuleKey)
  316.         CloseRegKey $(SoftServiceKey)
  317.         CloseRegKey $(SoftParameterKey)
  318.         CloseRegKey $(SoftLinkageKey)
  319.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  320.             EndWait
  321.             goto fatalregistry
  322.         endif
  323.     endif
  324.     ForListDo $(AdapterList)
  325.         set BusNum = *($($),1)
  326.         set SlotNum = *($($),2)
  327.         Debug-Output $(BusNum)
  328.         Debug-Output $(SlotNum)
  329.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  330.             $(SlotNum), $(ProductHardwareDescription), $(ProductHardwareName)
  331.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  332.             goto ShellCodeError
  333.         endif
  334.         ifstr $($R0) != "NO_ERROR"
  335.             set Error = $($R0)
  336.             goto fatal
  337.         endif
  338.         ifstr(i) $($R1) != "YES"
  339.                 Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  340.                 ifint $($R4) != -1
  341.                     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  342.                 endif
  343.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  344.                     goto ShellCodeError
  345.                 endif
  346.                 set RegistryErrorIndex = $($R0)
  347.                 Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  348.                     EndWait
  349.                     CloseRegKey $($R1)
  350.                     CloseRegKey $($R2)
  351.                     CloseRegKey $($R3)
  352.                     goto fatalregistry
  353.                 endif
  354.                 Set HardNetCardKey      = $($R1)
  355.                 Set HardNetRuleKey      = $($R2)
  356.                 Set HardParameterKey    = $($R3)
  357.                 set AdapterNumber = $($R4)
  358.                 set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  359.                                    {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  360.                                    {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  361.                                    {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  362.                                    {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  363.                                    {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)},+
  364.                                    {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  365.                 Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  366.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  367.                     goto ShellCodeError
  368.                 endif
  369.                 read-syms FileDependentDlg$(!STF_LANGUAGE)
  370.                 ui start "NetworkAddress"
  371.             ifcontains 1 in $(RadioOut)
  372.                 set CardSpeed = 4
  373.             else
  374.                 set CardSpeed = 16
  375.             endif
  376.                 set NetworkAddress = *($(EditTextOut),1)
  377.                 set NewValueList = {{CardType,$(NoTitle),$(!REG_VT_DWORD),2},+
  378.                                    {BusType,$(NoTitle),$(!REG_VT_DWORD),2},+
  379.                                    {MediaType,$(NoTitle),$(!REG_VT_DWORD),2},+
  380.                                    {EisaCompressedId,$(NoTitle),$(!REG_VT_DWORD),$(P1990_1BYTE)},+
  381.                                    {CardSpeed,$(NoTitle),$(!REG_VT_DWORD),$(CardSpeed)},+
  382.                                    {NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)},+
  383.                                    {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  384.                                    {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)}}
  385.                 Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  386.                 ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
  387.                     Shell $(UtilityInf),AddDefaultNetCardParameters,$(HardParameterKey)
  388.                 endif
  389.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  390.                     goto ShellCodeError
  391.                 endif
  392.                 set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  393.                 set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  394.                 set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  395.                                     {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  396.                                     {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  397.                                     {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  398.                 Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  399.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  400.                     goto ShellCodeError
  401.                 endif
  402.                 CloseRegKey $(HardNetCardKey)
  403.                 CloseRegKey $(HardNetRuleKey)
  404.                 CloseRegKey $(HardParameterKey)
  405.         endif
  406.     EndForListDo
  407.     goto writeparameters
  408. writeparameters = +
  409.     EndWait
  410.     goto successful
  411. bindingadapter =+
  412.     set Error = "Binding: Sorry, not yet implemented."
  413.     goto fatal
  414. removeadapter = +
  415.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  416.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  417.             $(ProductSoftwareName)
  418.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  419.             Debug-Output "ShellCode error"
  420.             goto ShellCodeError
  421.         endif
  422.         set RegistryErrorIndex = $($R0)
  423.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  424.             goto fatalregistry
  425.         endif
  426.     else
  427.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  428.             $(ProductSoftwareName), $(!NTN_RegBase)
  429.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  430.             Debug-Output "ShellCode error"
  431.             goto ShellCodeError
  432.         endif
  433.         set RegistryErrorIndex = $($R0)
  434.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  435.             goto fatalregistry
  436.         endif
  437.     endif
  438.     goto end
  439. UpgradeSoftware = +
  440.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  441.     Ifstr $(KeyProduct) != $(KeyNull)
  442.         install "Install-Update"
  443.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  444.             goto fatal
  445.         endif
  446.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  447.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  448.         CloseRegKey $(KeyProduct)
  449.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName) $(MAXIMUM_ALLOWED) ServiceKey
  450.     ifstr(i) $(ServiceKey) != ""
  451.         SetRegValue $(ServiceKey) {ImagePath,$(NoTitle),$(!REG_VT_EXPAND_SZ),$(ProductSoftwareImagePath)}
  452.         CloseRegKey $(ServiceKey)
  453.     endif
  454.     else
  455.         goto fatalregistry
  456.     endif
  457.     set iSearch = 1
  458. nextnetcard = +
  459.     Shell $(UtilityInf), FindNextNetworkCard, $(ProductHardwareName), $(iSearch)
  460.     set KeyNetcard = $($R0)
  461.     set iSearch = $($R1)
  462.     Debug-Output "OemNadEp.Inf: FindNextNetworkCard "$(KeyNetcard)","$(iSearch)
  463.     Ifstr $(KeyNetcard) != $(KeyNull)
  464.         Debug-Output "OemNadEp.Inf: Setting OperationsSupport value"
  465.         SetRegValue $(KeyNetcard) {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)}
  466.         CloseRegKey $(KeyNetcard)
  467.         goto nextnetcard
  468.     Endif
  469.     goto end
  470. successful = +
  471.     goto end
  472. abandon = +
  473.     ForListDo $(OEM_ABANDON_OPTIONS)
  474.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  475.             $(ProductSoftwareName), $($)
  476.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  477.             Debug-Output "ShellCode error"
  478.             goto ShellCodeError
  479.         endif
  480.         set RegistryErrorIndex = $($R0)
  481.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  482.             goto fatalregistry
  483.         endif
  484.     EndForListDo
  485.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  486.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  487.             $(ProductSoftwareName), FALSE
  488.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  489.             Debug-Output "ShellCode error"
  490.             goto ShellCodeError
  491.         endif
  492.         set RegistryErrorIndex = $($R0)
  493.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  494.             goto fatalregistry
  495.         endif
  496.     endif
  497.     goto end
  498. warning = +
  499.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  500.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  501.         goto ShellCodeError
  502.     endif
  503.     ifstr(i) $($R1) == "OK"
  504.         goto $(to)
  505.     else-ifstr(i) $($R1) == "CANCEL"
  506.         goto $(from)
  507.     else
  508.         goto "end"
  509.     endif
  510. nonfatalinfo = +
  511.     Set CommonStatus = STATUS_USERCANCEL
  512.     Set Severity = STATUS
  513.     goto nonfatalmsg
  514. nonfatal = +
  515.     Set Severity = NONFATAL
  516.     goto nonfatalmsg
  517. nonfatalmsg = +
  518.     ifstr(i) $(Error) == ""
  519.         Set Severity = NONFATAL
  520.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  521.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  522.             goto ShellCodeError
  523.         endif
  524.         set Error = $($R0)
  525.     endif
  526.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  527.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  528.         goto ShellCodeError
  529.     endif
  530.     ifstr(i) $($R1) == "OK"
  531.         goto $(from)
  532.     else
  533.         goto "end"
  534.     endif
  535. fatalregistry = +
  536.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  537.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  538.         goto ShellCodeError
  539.     endif
  540.     set Error = $($R0)
  541.     goto fatal
  542. fatal = +
  543.     ifstr(i) $(Error) == ""
  544.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  545.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  546.             goto ShellCodeError
  547.         endif
  548.         set Error = $($R0)
  549.     endif
  550.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  551.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  552.         goto ShellCodeError
  553.     endif
  554.     goto setfailed
  555. ShellCodeError = +
  556.     set DlgType      = "MessageBox"
  557.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  558.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  559.     set STF_MB_TYPE  = 1
  560.     set STF_MB_ICON  = 3
  561.     set STF_MB_DEF   = 1
  562.     ui start "Error Message"
  563.     goto setfailed
  564. setfailed = +
  565.     set CommonStatus = STATUS_FAILED
  566.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  567.         set OEM_ABANDON_ON = FALSE
  568.         goto abandon
  569.     endif
  570.     goto end
  571. end = +
  572.     goto term
  573. term = +
  574.     Return $(CommonStatus)
  575. [Install-Option]
  576.     set STF_VITAL = ""
  577.     ifstr(i) $(AddCopy) == "YES"
  578.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  579.     endif
  580.     ifstr(i) $(DoCopy) == "YES"
  581.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  582.        CopyFilesInCopyList
  583.     endif
  584.     ifstr(i) $(DoConfig) == "YES"
  585.     endif
  586.     Exit
  587. [Install-Update]
  588.    set STF_VITAL        = ""
  589.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  590.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  591.    exit
  592. [Source Media Descriptions]
  593.     1 = "Windows NT Server CD-ROM", TAGFILE = cdrom_s.40
  594. [Signature]
  595.     FileType = MICROSOFT_FILE
  596. [GetSignature]
  597.     read-syms Signature
  598.     return $(FileType)
  599. [ProductType]
  600. STF_PRODUCT  = LanmanNT
  601. STF_PLATFORM = I386
  602. [Files-Inf]
  603. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  604. [Files-P1990]
  605. 1,PRONET16.SYS , SIZE=999
  606. 1,PRORAPM.DWN , SIZE=999
  607. [LanguagesSupported]
  608.     ENG
  609. [OptionsTextENG]
  610.     P1990     = "Proteon p199X Adapter"
  611. [FileConstantsENG]
  612. ProCaption   = "Windows NT Setup"
  613. ProCancel    = "Cancel"
  614. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  615.                "Are you sure you want to cancel copying files?"
  616. ProCancelCap = "Network Setup Message"
  617. ProText1     = "Copying:"
  618. ProText2     = "To:"
  619. FunctionTitle   = "Proteon p199X Adapter Card Setup"
  620. ProductSoftwareDescription      = "Proteon Adapter Driver"
  621. ProductHardwareDescription      = "Proteon p199X Adapter"
  622. CANNOT_FIND_ANY_CARD            = "Network card is not present in the system"
  623. ProductHardwareTitle    = "Proteon p199X Adapter"
  624. ProductSoftwareTitle    = "Proteon Adapter Driver"
  625. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  626. ShellCodeErrorText      = "Shell Code Error."
  627. [DialogConstantsENG]
  628. Help        = "&Help"
  629. Exit        = "Cancel"
  630. OK          = "OK"
  631. HelpContext = ""
  632. Continue    = "Continue"
  633. Cancel      = "Cancel"
  634. [FileDependentDlgENG]
  635. Group1 = "Card Speed"
  636. Radio1 = "&4"
  637. Radio2 = "&16"
  638. Edit1Label = "&Network Address:"
  639. DlgType = "RadioCombination"
  640. DlgTemplate = "IBM_TOKEN"
  641. Caption = $(FunctionTitle)
  642. ComboListItemsIn = {}
  643. ComboListItemsOut = {}
  644. EditTextLim = 17
  645. EditTextIn = $(NetworkAddress)
  646. Edit1Label = "&Network Address:"
  647. HelpContext = $(!IDH_DB_OEMNADP9_INS)
  648. EditTextLim = 17
  649. EditTextIn  = $(NetworkAddress)
  650. EditFocus   = "ALL"
  651. RCCtlFocusOn = 403
  652.